/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.herenit.networkclinic.controller;

import com.herenit.appcontext.AppContext;
import com.herenit.model.User;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;

/**
 *
 * @author Administrator
 */
public class MainController implements Initializable {

    @FXML
    private Label loginName;

    @Override
    public void initialize(URL url, ResourceBundle rb) {
        loginName.setText("当前登录：" + AppContext.getDefault().lookup(User.class).getName());
    }
}
